package com.spzx.user.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.user.domain.Region;
import com.spzx.user.domain.UserAddress;

import java.util.List;

public interface RegionService extends IService<UserAddress> {
    /**
     * 根据code获取地区名称
     * @param code
     * @return
     */
    String getNameByCode(String code);
    String getCodeByName(String name);

    List<Region> getAddressList(String parentCode);
}
